Fix file cache bug