fix: issue when computing link density ratio