Fixed position to index conversion errors.# Please enter the commit message for your changes. Lines starting