fix deleting in insert mode