Forgot to restore an environment check