Fix link function.