fix for deprecated setInject