 				_textFlow = createTextFlowFromContent(_content);
 			else
 				_textFlow = staticPlainTextImporter.importToFlow(_text);
+            
+            lastGeneration = _textFlow ? _textFlow.generation : 0;
 		}
 		
 		return _textFlow;

     */
    private function textFlow_damageHandler(event:DamageEvent):void
    {
        //trace("damageHandler", "damageStart", event.damageStart, "damageLength", event.damageLength);
                
        // No changes so don't recompose.  The TextFlowFactory 
        // createTextLines dispatches damage events every time the textFlow
        // is composed, even if there are no changes.
        if (_textFlow.generation == lastGeneration)
            return;

        lastGeneration = _textFlow.generation;
                
        // Invalidate _text and _content.
        _text = null;
        _content = null;

        	// If 'content' was last set,
        	// we have to first turn that into a TextFlow.
        	if (_content != null)
            {
	        	_textFlow = createTextFlowFromContent(_content);
                lastGeneration = _textFlow.generation;
            }
	        		
            // Once we have a TextFlow, we can export its plain text.
            _text = staticPlainTextExporter.export(
