Fix first time you type UP or DOWN in TUI's command window