Fix multi-run script bug
Closes #542 again