fixed dual join bug