Fixed cookie reading