fix bug when city data is empty.