rebalance fix + doEngineStats fix