Fixed "undefined object" in _clearCookie