fixed hidoc.c