log query string
fix bug for removeExclude() NullPointerException