Fixed new line issue in parsing