fixing indexing of parameters when we have multiple repeated commands in the SVG path description string