fixed index.c ibase.c