FIXED: Fix the debug filter logic.