Fixing glyphs with invalid flags