Fix bugs: hashtable allocation, IID killer etc