Fix abd if condition