Fixed new line parsing