Fixed infinite loop due to silly thoughtlessness.