fix themes_rules