improved empty glyphs filtering