correct a bug with queryset instance in filter