FAIMS-258: fixing bug with creating polygons
merging dev