Fix infinite loop typo