Fix no newline handling