Fixed a for loop bug