I got it. I just grouped the whole root again, and then added th expression to the pelvis node, and linked the ik of the legs to it. Worked like a charm =)