fix font resizing bug