fixed issue with inverted filters not being deleted properly