fixed issue with service locator