Fixed carriage return bug in preprocessing