Fixed issue where ClientDependency injection did not work