fixed possible bug in hasMany