Fix cookies for graphs