[vimmode]  fix the state problem