Fixed some line endings bugs