Fix a silly loop that's better as a list comprehension.