fix for precedence of the logical negation operator