improved method for disabling bad joint shapes