fix shortenUrl