Fixes a couple of slight bugs in Cookie