typo in while

Signed-off-by: Thiago Rondon <thiago.rondon@gmail.com>