Avoid livelock