fix issue with redudant builds of locals in inject.