Missed one while -> for loop.