Fixing closeFolders backward compatibility