fixed problems with resetting pw