trying to fix "file mode changed" issue