Fix rule name gets flipped issue #5