Fixing corrupted file