fix filtering in sheriff panel