Fixes inverse kinematics to work for both legs