fixed another bug in the handling of stylesheets