Fixed error in  inject() function.