Fixed bug in setting the filter rule.