small url code fix