fix PatternViewer expression filtering