Fixing the memory corruption in IECookieManager