Optimization (doesn't draw the last segment anymore)