fixed the bug in linkage disconnection size calculation