fix yermilov/polygonization-2