Make cookie check work again