fix bugs in commit log