Eliminate dead loop.