to(task): fix wrong task resolve