fix the payment table bug