fix middline distance