Fixed first attempt to use a cached object causing errors and broken stylesheets