Bugfix: openAll/closeAll works also when components are added during the process