fix bug for url shortener