Fix bug during indexTranslation