fix a bug in font display