correct the padding of links