attempt at fixing the revert-to-more-glyphs bug
Merge pull request #1303 from mskala/revert-crash-bug2

attempt at fixing the revert-to-more-glyphs bug