fix bug in updateRegions