Find a loop no until succeed.