Fixed check for stylesheets