Fix a bug in htable.c