fix read cookies property in header