checkout - bug fix

Was throwing an exception