         };
         filterObjectFactory.prototype = originalChain;
         filteredChain = new filterObjectFactory();
+        filterObjectFactory.prototype = null;
         
         for (var i:String in chain)
         {

            
            defaultFactory.prototype = chain;
            chain = new defaultFactory();

            if (filterMap)
                chain = applyFilter(originalChain, chain, filterMap);

            objectFactory = new factory();
            factory.prototype = chain;
            chain = new factory();
            factory.prototype = null;
        }
        
        // If someone has called setStyle() on this CSSStyleDeclaration,
