fixed an error when deleting a filter that caused all groups to be deleted