Fixed the queryset method, slicing error