Fixed bug with link shortening