Fixed filter bugs.