Some bugfixes for the iterations runtime