key_commit: fixed bug in removeBatch