fixed index.c