Fixed a typo'd while loop condition.