fixed an injection issue

could not inject cli or config params
if inject by name was turned off