Maya, Spline IK Advance Twist help



I’ve made this quadruped rig with advance IKSpline twist set up on its leg. It works fine till I move the control upwards where it causes a Gimbal Lock issue.
The Start Loc is parented to the ShdrFKCtl and end Loc is to the knee/Leg02_JNT
Forward Axis is +X
Up Axis is +Y
I’ve played around with the rotate order(X is the last in the rotation order), forward and up axis and the location of the locators and still unable to fix this.
image Attributes

Before translation
After Translation with gimble lock

Does anyone have a suggestion where I am going wrong?
Kind Regards,


this was solved by changing the up axis to +Z and up vectors to the Z axis.