Add and correct the left and right borders.