fix data cache not saving