Repair filemode