Avoid an endless loop