fix main index