bug fix when removing small (<3 regions) groups