Corrected bug in polyhedron writer