fix line endings bug