newline fix cursor movement