Fix cleanup_commits