IndexOutOfRangeException first fix.