Fix index conversion.
Fix index conversion.