fixed handling of base URL of style sheet