fixed bug when teams list is empty.