Fix filtering in snapshots

Filtering did not work in snapshots, with this fix it does again.