fixed memory leaks when some filters were cancelled