Fix bug to avoid MultiLine and MultiPolygon creation