Fix queryset reference in manager