Fixed scrolling and commandHistory

Fixed them working at the same time.