Fixed bug caused by \n\r linebreaks