fix queryset empty issue