Fix GlobalCounter increase when commit a file update