Fix an error in the previous pull request #46
Merge pull request #86 from hongkai-dai/FixIKError

Fix an error in the previous pull request #46