Fixing cookie parsing bug.