fix for :not selector scope in context