Fix bugs of filter evaluation.