fixed bugs of filter