Fixed bug with newline reading.