Fix the bugs: 1. TaskFactory creates wrong task, 2. BackupUtil commit inorder.