fix bugs in class GNum