Fixing freshly introduced url shortening bug