fixing wrong conditional in checkoutprocess