Fix for loop bugs