Filemodes fix