Fixed bug that would crash the thread if there was a line of all spaces