Fix one condition and format the code