small bugfix for closeall