Remove filters by the filter itself, not the index in the list.

Because index can be changed by modifications, wrong filter can be removed unexpectedly.
Output more logs for debugging