Second rule isn't apply when first rule matches