Fix bug in commit