fix bad file