Bug fix for cookie_exists