bugfixes for inject method double injecting on inputs