Fixed a problem introduced by not setting joint limits