fix error when there is no cityselect or districtselect