bug fix: removing logic gates from exprs