fix setcurrenttask bug