fixed issue where payment confirmation emails were failing