repair initSandbox