Fix the bugs that BackupUtil didn't recover files correctly.