Fixed error when pressing ESC to cancel player adding