fix a bug for ambush