Wasn't there another report on this bug happening?
Maybe enemies that wind up outside of the gate should lose their flag or however it's currently written up that marks them as part of the fight. As a failsafe in case whatever bugfix that prevents this doesn't work 100% of the time.