Fixed loop over wrong list.