fix internal team list query