Fix bad of condition