Delete index, fix main.