fixed a problem with joint control.