fix auto checkout