fixed bug: when there is no rule it will match everything