Fix bug, when no cookies avoid crash