key_commit: tweak to the list for get index