hasMany fix.