Move index to the correct location