Fix error in helper function for loading stylesheets