constraint->fields type fix