avoid infinite loop

allow more loops