fix reset pw’s problem