Fix issue 3: glyph binning.

Thanks to Nicolas Hillegeer for spotting this bug.