Fix rebalancing.