cookies check fix