             }
             else if (navigator is ViewNavigator)
             {
-                if (componentIsVisible(ViewNavigator(navigator).actionBar) != nextView.actionBarVisible)
+                if (componentIsVisible(actionBar) != nextView.actionBarVisible)
                 {
                     fullScreenAnimation = true;
                     targetNavigator = navigator;

                fullScreenAnimation = (componentIsVisible(tabBar) != nextView.tabBarVisible);
        }
        
        // Check for actionBar visiblity and overlayControls property change
        if (!fullScreenAnimation)
        {

            
            if (navigator is ViewNavigator)
            {
                if (componentIsVisible(actionBar))
                {
                    // Always generate full ActionBar caches
