fix empty prevalence queries