fix joint_types implementation