Added explicit flush to avoid broken cache.