moves join to correct location for bindVal