fix dependency injected bug