fixing a refactoring bug in font