Fix to exception when creating team members