fixes testMapWithIndexAfterShutDown