fix closed-stroke issue