Fix cookies hooks.