bugfix for filtering pointers