SetRestorationOfStatesFlagを追加