animation baking to armature

Hi there,

I’m trying to bake an animation, made with a control rig, down on the deform rig for my mesh. But when i bake, the deform rig animation is really inaccurate compared to the base animation. I think it might have to do with using a spline ik for part of my rig, but any tips on how to get the bake accurate?
Thanks in advance!

before the bake:

after the bake: