fixing yermilov/polygonization-21