Fix wrong linking