fixes bug in injector after last changes