delete assert in markTask()