Fixed some layout bugs (centered math text)