fix a bug in setting region name