Fixed bug with cookie not being global.