FIX: error occour when queryset is empty