add restore after auto-phase-check