fix new-task crash