Still can’t say what is causing this rotation, but it can be corrected by resetting the bone rotation of the pelvis.