Fix newline bug at top-level