fix backup & restore error, when OK dialog window appears BEFORE the task is really done