fixed minor bug in PostGIS geometry converter