FIxed issue with precedence of the not operator