fixed crash on checkout