Remove redundant index conversion