Fixed #1000: Infinite loop is infinite