fixed wrong object reference when doing a lookup for the services provided by a client

test will follow asap