Fixed crash when there are no teams