diff --git a/utils/changelog b/utils/changelog
index 2e5e51643ec636ce6e9cc85dcf45a364025c0c5d..9607063d3032aa30670a86b948c35de652bd9dd0 100755
--- a/utils/changelog
+++ b/utils/changelog
@@ -87,7 +87,7 @@ def store(commits, prs, authors, commit, author, merge, msg):
 
 def get_commit(commits, commit):
     _commits = [value for key, value in commits.items()
-                if key.startswith(merge)]
+                if key.startswith(commit)]
     if len(_commits) == 1:
         return _commits[0]
     return commit