Set link correctly