Fix setState bug in constant glyph size