surroundedRegions buggy