Fixed bug where last line was not returned