Fix handling of DOES_NOT_CONTAIN