fixes for updating the replacement strategy on setStorageMode