Trim path with a mask renders as a thin line

Hey folks,

I’m having issues rendering shape layers with track mattes in Lottie. I have one shape layer with a path and dashed stroke that works perfectly, it’s masked as it should. However, the other shape layer that should be on top and is a solid without dashes renders as a thin line as shown above. They’re masked the same way. Aside from a time expression on the dashes’ offset, no expressions are used. I’ve masked these two paths separately since it wasn’t working when I had them track matting towards the same layer. The mattes are set above their respective shapes but I still get this weird error. The only keyframe data is trim paths driving the strokes and as you can see the dashed path animates correctly. Any ideas?

After checking the render, the dashes sweep down from outside of the mask. So it doesn’t start from the far left, it trim paths down from the top left corner of the comp which is incorrect.