diff --git a/exec/load/syncterm_cache.js b/exec/load/syncterm_cache.js
index de52169c844000e7a614a7a9cd8dd364c17788a4..f1df97ebd1cf3cd4a01ddddb463978fa9f43427f 100644
--- a/exec/load/syncterm_cache.js
+++ b/exec/load/syncterm_cache.js
@@ -94,7 +94,7 @@ SyncTERMCache.prototype.upload = function (fname, cache_fname)
 	if (idx !== -1) {
 		idx += 2;
 		idx += cache_fname.length;
-		if (hash == lst.substr(idx, idx + 32)) {
+		if (hash == lst.substr(idx, 32)) {
 			f.close();
 			return true;
 		}