Fix erroneous index