Code:
if !$hget(name) { .hmake name 10 }


Should be:

Code:
if !$hget(bad.name) { .hmake bad.name 10 }


The hash table names aren't the same.