fixed statistics view filtering logic