Fixed a bug in payment system