Fix error in payment process