Infinite loop fixed.