fix: recover from corrupted file