fix display error when enter key down