Fixing the parsing of the last line