fix bug when reset password