Fix fatal bug in THashmap usage