fix join insert