Fixed bug in inverse kinematic code

I changed it to use the existing update slider and theta functions in
inverse solver rather than redo the logic, it produces more valid
results now.