defn fix-files