more fixes for HashFactory and MenuItems