fix for percolate query