fixing insert->cmd cursor moving on mode change