Fixed a bug where expand all closed already open causes