Fixed bug with prexisting cookies