fixed small bugs in GDG