Fixing the parser to handle empty lines.