Fixed cookie parsing