bugfix of segmentation fault when segmented wall has too few points