[Cookie] Fix cookie and cookie jar

This PR fixes #26