Dashed path irregular shows segments

I copy and pasted a dashed stroked path from Illustrator into Figma. In Illustrator each dash segment is the same length while in Figma it seems that there is a dash segment on each anchor point. Is this a bug or is there a way of fixing this?