fixed: dereference the hash to ensure we get a copy.