fix shorturl handling