Correct behavior for legend filtering