Fixes #5317: Set matching rule on attribute to match case change