fix bug when invoke with wrong technique in infect