Prevent an infinite loop.