key_commit: Fixed a version overwrite issue