Fixed a do/while loop.