Fixed an old mistake, by combining an if and for statement to only one for statement. This fix has been implemented everywhere else, just not in this application...