fixed stroke bug for discontinous paths