Fixed cookie bug.