Fix bad 'not in' construct