fix bug of properly generating revolute joint with limits