fix arrow navigation in insert mode