Fixed ArrayIndexOutOfBounds error. The index should have been [1]
instead of [2]