fix DoD in linking