Fix a bug brought on by refactoring

I somehow missed a for-loop...