Fixed issue with queryset not being returned to controller