Fix file cache save bug