Fix caching and labelledglyph bugs.