Correct problems with line endinds