Fixed minor bug with for loop