fix issue with center and right alignment