fix wrong cache flag