fixed bug when rule not found