Fix when a line is made in place of a polygon