fixed bug:Environment inject fail.