Text is not shown as aligned to center. How to fix?