fix access to last_joint_states