patched bug with many-many-table-joining