diff --git a/validate_hashes.py b/validate_hashes.py
index 3b4eec10ad0c7d166cd1496d7de7ef537202a782..f20141745eaa89193bd15cce009f1c246dac7236 100755
--- a/validate_hashes.py
+++ b/validate_hashes.py
@@ -170,7 +170,7 @@ def makeChangesGraph(fullRecord):
                     print "found testfile.c (2)"
                 if 'ast-hash' not in currentFiles[filename].keys():
                     print "ast-hash not in keys of file " + filename
-                    break
+                    continue
                 currentRecord = currentFiles[filename]
                 prevRecord = prevFiles[filename]