make models not have undefined things in them