Cookie check fixed