fix ask_commit bug