fix logs with newline