Prevent freeze when building glyphs for high index glpyhs