fixed crash-inducing bugs in auto-payer