Fixed the scroll behavior of debug consoles