Fix bug with up arrow button.