fix the crash when delete apps in restore progress