Fixed a bug in the team message sending code. minor code changes in the message system.