Fixed a bug in font loading which eats memory