fixed IndexOutOfRangeException