correct damaged file