fix multi task bug