Fixed for loop error

Fixing for loop error i>1 to i>0