Avoid endless loop