fix restore-to-raw option