Fix infinite loop in table unreaction.
Fixing bugs in hash table demux representation.