Fix broken restore object task