fix bugs relating to shared and non shared structures for joins