bug fix in polygon export