Fix StackRestore initialization.