fix classreference for creating new menuname objects