Fixing checkoutcontroller bug