Fixes many-to-many joins in auto-generated filter forms