Fix some bugs from change of regions.