When the subdivide modifier was used, the UV was not recalculated and the texture of the stroke was wrong.