fixed bad code for team pages