Fix file sync