fix restore command