Repair and change file name