fix unbounded loop

4 jobs for master in 2 minutes and 22 seconds (queued for 7 seconds)