fixed some errors in team.rb