fix reset issue