fix bug for Injector