Fix: unlock team when it is saved