fix possible infinite look