Fix read method from cookie class