I found this reply in another post and it appears to fix the problem.
Can be added to the end of ShapeGeometry constructor?