bug fix for setting font.