Fixed issue when toggling between editable polygons