fixed a loop in live capture introduced by the last commit