PathStroke constructor fix