Move the index to the correct location