Fixed bug with line endings.