index2Position bug fixed