Bugfix: superfluous extra perimeters were generated. #1170