fix bugs about console vim using menu.