Fix bug when use BelongsToMany association