fixed bug for newline (\n)