fixed belongsToMany relationship