fix filemodes