fix routing idxs