Filters memory leak fix

Filters memory leak fix