bug fix for checkout