fix compare_commits