fix reset_password bug