Fixed minor bug in ShapeConverter (thx to José)