Graphic distance fix