fix negation bubbling for specific occurrences for AND NOT only paths