fix index2plain