Fix logical errors in CUDF parser.