Fixed bug in font loading