fix flash for caches