Fixes backward compatibility for stylesheets.