fix problem of sending new lines