fix inject bug