fix problems with font loading