Try to avoid endless loop