corrects the filter query in labreport form