fixed: bug with delete key and auto edit mode