fix join bug 3