fixed hasMany exctract