fix join results