Fix checkout detection