Fixed error in linking