patch for runaway duplication of generated stylesheets