fix error of filtering