bug fix in autocheckout