fixing bug where removing filters deletes a filter group