Fix for json cookies