Fix infinite loop bug in InsertEffects.

insidious_bug_counter++;