fixed the glyphmap buffer size bug
merge