fix crash bug enter a wrong city name