small fixes when testing looping