fix incorrect exclude query