I would normally start by identifying which method is causing the flaw, perhaps add a comment in each method with a debug bool condition. That way you can set them on and off.
Without seeing your code thats the best i can recommend, be as informative as you can with your comments.
You also know the bad index is 8, so you’re probably looking for an array somewhere that has a size of eight elements. Check for loops for <= instead of < signs.