Fix bug in computing the parallel joint state.