Fix infinite loop.