fix possible endless loop