Fixed indexOutOfBoundsException

My loop control variable needed to be i > 0 instead of i >= 0