fix segment dilation