Fix this infinite loop.