fix ManyToMany filtering