Fix add-service task for arity two and three