fix incorrect length in injection pass