LineWriter fixes