Looks like this should just be "itypes" and not "g->itypes".