Fix stat properties on file change