fixed bug for while loop with single condition: while (true) ...