a bug caused by nested if-else statement without bracket, the warm-up iteration was affected