fixed bug in font initializtion