Fix visibilaty bug of ld calculator