fix the \r\n  bug