fixed a bug of unexpected resolved IK result caused at line 785