Fixed a bug of Esc not cancelling name/status changes