Fix a repeating loop.