Fixes #47 crash in account_payment_purchase

That's a fix in my own code !