#ifdef INSERT_RFX_TAG
if ((swf->firstTag && swf->firstTag->id != ST_REFLEX) &&
- (!swf->firstTag->next || swf->firstTag->next->id != ST_REFLEX))
+ (!swf->firstTag->next || (swf->firstTag->next->id != ST_REFLEX &&
+ (!swf->firstTag->next->next || (swf->firstTag->next->next->id!=ST_REFLEX)))))
{
swf_SetBlock(swf_InsertTagBefore(swf, swf->firstTag,ST_REFLEX),(U8*)"rfx",3);
}