fix newline bug