rules tpls fix