fix yermilov/polygonization-21