fixed hindexd.c