Fixing newline scanning errors.