Bugfix for rare 4-sided shape

fixes #11