fixes invalid fields in hasMany