fixed cookie parser