Fixing newline bug.

Tried to fix the newline bug.