fixed a screen buffer issue, thanks to @jonathanepollack