Prohibit two joints in one point. Small algorithm updates.