Fix handling of multiple cookies