Fix bug in hashtable Update(), leading to memory leak.