fix get task number issue