Fixed filter performance issue.