fixed for loop for team page