Fixing wrong linking