Revert "Bug fix in InjectHelper"

This reverts commit 063e4f279ab24d70ac19538360972187fe1031e1.