fixed bug that sometimes newline gets invisible