BUG: check that objects exist before joining