fixed cursor change in emacs insert mode