Bugfix for a bug where the max closed set count is never cleared.