main index fix