fixed chmoding of files