Fixed team joining bug