Fixed loop to exclude 0