Fix bug in cookie parsing.