Fixed range error with CR line endings