fixing bugs in the checkout system