fixing font loading bug