Fix bug with resizing of font