NOT/negative conditions are not working