Eliminate unnecessary index in main
[ci skip]