Fix file commit when the file size grows