fix comparision of constant 0 with boolean