fix for if cookie is an array