fixed bug for (false==true) returning true