fix #1: exception on escape in command window