Avoid infinite loop.