Fix bug fix bug in commit logging