fixed bug Cookie to string