Fix crashing after first line goes out of screen