You don't define what a 'bad index value' is.