fixed links in hashtable and scramble