Fix the short URL generator