fixed newline position bug