Bug fix: protects pointer update in hashtable.