Fix bugs in HEX smearing.