Fixed some bugs to do with horizontal centering with a border.