fixed statistics bug on filters
query update