Fix file transfer counter