PermissionRules.xaml & TypeRules.xaml fix
Merge branch 'XRules.xaml-fix'