Fix type issue when looking up a team's record