Fix pattern syntax and change priority