replace -1 with FIELD_CARDINALITY_UNLIMITED