how to fix restore mode?