bug fix for url shortener