fix bug in payment