Less hackish fix for boolean cookies