Fixed missing curly brackets in one-stmt if-while constructor