fixing a gii enum generation bug