bug fix - missing not in condition