fix error in index caught by thadguidry