Fix a potential loop.