fix issue with hasMany validation