fix reset syntax for old code