Fixes join embedded document