Fix broken query on team submission details page.