correct errors in gedf.c and gram.c