fixed invalid generics for task service method