fix bugs regarding confirm payment