Fix file sync error