fixes an issues with empty custom queryset