Fix recursive loop.