fix corrupt files