rebalance fix for incontiguous ids