Fixed injectinit function

Change-Id: Ib70f7bfac23c4210c533ebc075b65acf4f15f4ca