fix rule template