Fixed a for-while syntax error