Fix accessing to the result of IK in order to avoid SEGV