Fix glyph inspector

Fix a stupid bug, and some code formatting.