Minor fix to assign the Entity to the id of the polyline.