fix bug with outdated region type and redrawing links