Correcting bad files