key_commit: bug fix oops