fix when run create_indexes task
remove unneed codes

[ci skip]