correction to undo.

gb->undo();