[cvs-nhc98] - fixed two minor bugs in hat-detect.c, concerning display