fix bug with shortcut r,enter