fix join bug 2