Fix newline bug

Actually closes #22