fix for exiting insert mode