fix the font loading bug