Fix bug when changing the font size