Bug fixes of iRvDynamics.