fix crash when attaching a console with a screen bigger than ConsoleZ's view