minor fix in inject