fix bug that "R" enters insert mode