Bug fix when renaming teams