Bugfix for an Exception in enable when clearing teams