Fix another foreach call