Fixed array index out of bounds error

When the program would find that the user didn't click inside of the
bounds of the pie chart, I accidentally forgot to make sure that the
previous index we were using and all of the previous data stayed put.