fix main/index file