fixed passing arguments when resolving a registered service