Fixed $rule->substitutions bug when using namespaces