Dynamic bugfix for $HEX$.