fix rule compiler bug