bug fix when CurrentGlyph == None