Fix cookie issue

Fixes #8