fix wallet open with invalid password