Fixing the 'not' operator being in the wrong place.