Fixed a problem that could not change a mode of files in a subdirectory