Fixed the segmentation fault that sometimes occured when generating the ...

...effector boundaries. After a lot of searching it turned out to be a case of a bad boundary check.