Fix some errors in font loading