fix bug for checkout