fix for undefined spending_password issue