             }
 
             // Finally look for type selectors
-            if (tc === null || !StyleManager.isValidStyleValue(tc))
+            if (tc === null || !styleManager.isValidStyleValue(tc))
             {
                 var typeSelectors:Array = getClassStyleDeclarations();
 

                        sc = decl.getStyle("selectionColor");
                    }

                    if (tc !== null && StyleManager.isValidStyleValue(tc))
                        break;
                }
            }

        else
        {
            // Next look for class selectors
            if ((tc === null || !styleManager.isValidStyleValue(tc)) &&
                (styleName && !(styleName is ISimpleStyleClient)))
            {
                var classSelector:Object =
                    styleName is String ?
                    styleManager.getStyleDeclaration("." + styleName) :
                    styleName;

                if (classSelector)
