fix for cookies error