Fix file concurrence bug