fixed invalid generics for task service method - missed some more
(cherry picked from commit 5ada08969dc5b15aef2c5bf187987498390c97f1)