An object with two curve modifiers

Blender Question.blend (948.4 KB)
I’ve been trying to make this work for some time now. I want the repeating patter to sit right on the curve, but it’s always too far outside. Please see the attached file. How can I move the pattern close in so that it wraps around the structure I built?

https://blenderartists.org/t/deform-mesh-along-curve/615269/5

Blender Question2.blend (106.3 KB)