bugfix: sample filter logic