Fixed some problems with text centering