Made a script that fixes indexing