Fix for cookie reading.