fixing file mode change caused by Windows file systems. Will find a way to prevent this problem from occurring