Fix infinite loop: Next() before continue.