Fix mode on files