fixed bug with the key in g2num