joint distance fix