fix refactor bug: invalidate update_regions_func