Bug fix: allow logical expression in the formula dependent variable