[cvs-nhc98] patch applied (hat): Fixed a bug in hat-trans