Use flat index in imenu