Fix marker index problem on line draw.